package com.tenebrous.jestic.entity.framwork.meber.organ;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Table(name = "ORG_ROSTER")
public class OrgRoster implements Serializable {

    private static final long serialVersionUID = -1450339698390393194L;

    @Id
    private String id;
    private String hisid;

    private String companyid;
    private String companyname;

    private String departmentid;
    private String departmentname;

    private String leveid;
    private String levecode;
    private String levename;

    private String sequnceid;
    private String sequncecode;
    private String sequncename;

    private String stationcode;
    private String stationname;
    private String stationgradname;

    private String stationid;
    private String stationgradid;

    private String userid;
    private String employsn;
    private String realname;
    private String oldrealname;

    private String birthday;
    private String birthaddr;

    private String sexCode;
    private String sexName;

    private String nationCode;
    private String nationName;

    private String nativeCode;
    private String nativeName;

    private String politiCode;
    private String politiName;

    private String comunistime;
    private String worktime;

    private String edutionCode;
    private String edutionName;

    private String edutionSchool;
    private String edutionMajor;
    private String edutionGradutime;

    private String degreeCode;
    private String degreeName;

    private String marryCode;
    private String marryName;

    private String healthyCode;
    private String healthyName;
    private String healthyDesc;

    private String enleveCode;
    private String enleveName;

    private String pcleveCode;
    private String pcleveName;

    private String titleleve;

    private String address;

    private String idcard;

    private String email;

    private String phone;
    private String phonecode;
    private String mobile;
    private String mobilecode;

    private String technicPosit;
    private String technicSpecial;
    private String creditReport;

    private String evaluate;
    private String islegal;
    private String avatar;

    private String entrytime;
    private String fomaltime;

    private String remark;
    private Long sort;

    private Date createDate;

    private String createUserid;

    private Date updateDate;

    private String updateUserid;

    public String getStationtext() {
        return String.format("%s - （%s，%s）", this.getStationname() == null ? "" : this.getStationname(), (this.getSequncecode() == null ? "" : this.getSequncecode()) + (this.getSequncename() == null ? "" : this.getSequncename()), (this.getLevecode() == null ? "" : this.getLevecode()) + (this.getLevename() == null ? "" : this.getLevename()));
    }
}